package appapi.dao;

import appapi.Request.Basic.DictionaryReq;
import appapi.entity.Zhongjiao.DictionaryDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/11 14:11
 * @description:
 */

@Mapper
public interface DictionaryMapper {
    int deleteByPrimaryKey(Long dictId);

    int insert(DictionaryDto record);

    int insertSelective(DictionaryDto record);

    DictionaryDto selectByPrimaryKey(Long dictId);

    int updateByPrimaryKeySelective(DictionaryDto record);

    int updateByPrimaryKey(DictionaryDto record);

    List<Map<String, Object>> selectDicType(String dicType);
    List<DictionaryDto> selectDic(@Param("dicType") String dicType,@Param("value")String value);

    List<DictionaryDto> queryList(DictionaryReq req);

    int queryCount(DictionaryDto record);

   List<String> queryTypeList();
}